package com.hao.tool.extra.simple;

import java.util.Scanner;

/**
 * java -cp ~/Program/util/hao-tool-extra-jar-with-dependencies.jar com.hao.tool.extra.simple.HaoSimpleTool start
 *
 * @author HaoZ on CMHK.gz
 * @date 2022/8/11 下午12:42
 */
public class HaoSimpleTool {

    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入：【需要选择的功能】");
        System.out.println("+------------------------------------------+");
        System.out.println("++++++++++ 1：上传文件            ++++++++++");
        System.out.println("++++++++++ 2：批量上传文件         ++++++++++");
        System.out.println("++++++++++ 3：从文件中清除html标签  ++++++++++");
        System.out.println("++++++++++ 4：从网页中清除html标签  ++++++++++");
        System.out.println("+------------------------------------------+");
        System.out.print("请输入：");
        int chooseNum = scan.nextInt();
        System.out.println("---------- 程序准备中，请稍等 ----------");

        FileUploadTool fileUploadTool = new FileUploadTool();
        FileBatchUploadTool fileBatchUploadTool = new FileBatchUploadTool();
        HtmlTextClearTool htmlTextClearTool = new HtmlTextClearTool();
        HtmlUrlClearTool htmlUrlClearTool = new HtmlUrlClearTool();

        switch (chooseNum) {
            case 1:
                fileUploadTool.execute();
                break;
            case 2:
                fileBatchUploadTool.execute();
                break;
            case 3:
                htmlTextClearTool.execute();
                break;
            case 4:
                htmlUrlClearTool.execute();
                break;
            default:
                System.out.println("无效信息，已结束");
        }
        System.out.println("---------- 程序已执行完毕，请退出 ----------");


    }
}
